package com.meituan.sdk.model.ddzhkh.generalreserve.generalreserveQueryphoneinfo;

import com.meituan.sdk.annotations.ApiMeta;
import com.google.gson.reflect.TypeToken;
import javax.validation.constraints.NotBlank;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;

/**
* 查询订单对应手机号信息
* This file was automatically generated.
*/
@ApiMeta(
    path = "/ddzhkh/generalreserve/queryphoneinfo",
    businessId = 59,
    apiVersion = "10003",
    apiName = "generalreserve_queryphoneinfo",
    needAuth = true
)
public class GeneralreserveQueryphoneinfoRequest implements MeituanRequest<GeneralreserveQueryphoneinfoResponse> {
    /**
    * <p data-diff-id="ct-diff-id-42d3770f-1cd3-4fc9-aa25-b9252deb1f9e">订单id</p>
    */
    @NotBlank(message = "leadsId不能为空")
    @SerializedName("leadsId")
    private String leadsId;

    public String getLeadsId() {
        return leadsId;
    }
    public void setLeadsId(String leadsId) {
        this.leadsId = leadsId;
    }


    @Override
    public MeituanResponse<GeneralreserveQueryphoneinfoResponse> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<GeneralreserveQueryphoneinfoResponse>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "GeneralreserveQueryphoneinfoRequest{" + "leadsId=" + leadsId + "}";
    }
}
